<div class="sectionHeader">
    <hr>
    <button type="button" onclick="takeout.copy('${ctxPath!}/dbtable/listDialog',1, 'smallapp')"
            class="btn btn-info mainButtonRight">复制
    </button>
    <button type="button" onclick="takeout.del('${ctxPath!}/smallapp/del',1, '')" class="btn btn-info mainButtonRight">
        全部删除
    </button>
    <button type="button" class="btn btn-info mainButtonRight"><a
            href="javascript:takeout.openEdit('${ctxPath!}/smallapp/edit', null);" class="mianAcolor">+ 新增</a></button>
    <button type="button" onclick="takeout.copyTable('${ctxPath!}/dbtable/listDialog',1, 'smallapp_smallapp')"
            class="btn btn-info mainButtonRight">全部复制
    </button>
</div>

<form id="queryForm" action="${ctxPath!}/smallapp/list" method="POST">
    <div class="sectionForm">
        <div class="form-inline">
            <div class="sectionFormFirstRow">
                <div class="form-group sectionFormLabel">
                    <label class="mainColor">标题:</label>
                    <input type="text" name="title" class="form-control" id="peopleName" required=""/>
                </div>
                <button type="button" onclick="takeout.ajaxFormMainPanel('queryForm')" class="btn btn-info"
                        style="width:90px;">查询
                </button>
            </div>
        </div>
    </div>
    <div class="sectionFormContent">
        <div class="sectionFormHeadline">
        </div>
        <hr>
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th style="width: 50px;"><a href="javascript:takeout.selectAll();">全选</a></th>
                <th>标题</th>
                <th>wxappid</th>
                <th style="width: 70px;">操作</th>
            </tr>
            </thead>
            <% for(im in data.list){ %>
            <tr class="a">
                <td style="width: 50px;text-align:center"><input class="a" type="checkbox" value="${im.id}"/></td>
                <td>${im.title!}</td>
                <td>${im.wxappid!}</td>
                <td style="width: 70px;">
                    <a id="a"
                       href="javascript:takeout.openEdit('${ctxPath!}/smallapp/edit?id=${im.id}&categoryid=${categoryid!}', null)">修改</a>
                    <a class="a"
                       href="javascript:takeout.del('${ctxPath!}/smallapp/del?categoryid=${categoryid!}' ,0, '${im.id!}')">删除</a>
                </td>
            </tr>
            <%}%>

        </table>
        <div id="splitPageDiv" class="splitPage">
            <% include("../common/comm_page.html", {"divId" : "manage_content", "formId" : "queryForm", "splitPageDiv" :
            "splitPageDiv"}){} %>
        </div>
    </div>
</form>

<!-- 全局js -->
<!--<script src="js/jquery-3.2.1.min.js"></script>    -->

<script src="${ctxPath!}/admin/admin/js/jquery-1.12.4.min.js"></script>
<script src="${ctxPath!}/admin/admin/js/jquery.form.js"></script>
<script src="${ctxPath!}/admin/admin/js/bootstrap.min.js"></script>
<script src="${ctxPath!}/admin/admin/js/jquery.metisMenu.js"></script>
<script src="${ctxPath!}/admin/admin/js/jquery.slimscroll.min.js"></script>
<script src="${ctxPath!}/admin/admin/js/layer.js"></script>


<script src="${ctxPath!}/admin/main/takeout.js"></script>
<script src="${ctxPath!}/admin/main/page.js"></script>

<!-- 自定义js -->
<script src="${ctxPath!}/admin/admin/js/hAdmin.js?v=4.1.0"></script>
<script type="text/javascript" src="${cxtPath!}/admin/admin/js/index.js"></script>
<script charset="utf-8" src="${ctxPath!}/admin/admin/kindeditor-4.1.10/kindeditor-min.js"></script>
<script charset="utf-8" src="${ctxPath!}/admin/admin/kindeditor-4.1.10/lang/zh_CN.js"></script>
<script type="text/javascript" src="${ctxPath!}/admin/admin/diyUpload/js/webuploader.html5only.min.js"></script>
<script type="text/javascript" src="${ctxPath!}/admin/admin/diyUpload/js/diyUpload.js"></script>
<script type="text/javascript" src="${ctxPath!}/admin/admin/webuploader/webuploader.js"></script>
<script>
    KindEditor.ready(function (K) {
        window.editor = K.create('#news_content', {
            afterCreate: function () {
                var self = this;
                K.ctrl(document, 13, function () {
                    self.sync();
                    K('form[name=form1]')[0].submit();
                });
                K.ctrl(self.edit.doc, 13, function () {
                    self.sync();
                    K('form[name=form1]')[0].submit();
                });
            },
            afterBlur: function () {
                this.sync();
            }
        });
    });

</script>